import { ref } from 'vue'
import { defineStore } from 'pinia'

const key = 'store:keep-alive'
export const useKeepAliveStore = defineStore(key, () => {
  let include = ref([])

  function setInclude(value) {
    include.value = value
  }
  function clearInclude() {
    include.value = []
  }
  return { include, setInclude, clearInclude }
})

export default useKeepAliveStore
